package com.example.demo.mapper;

import com.example.demo.model.Enemy;
import com.example.demo.model.EnemyExample;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface EnemyMapper {
    long countByExample(EnemyExample example);

    int deleteByExample(EnemyExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Enemy record);

    int insertSelective(Enemy record);

    List<Enemy> selectByExample(EnemyExample example);

    Enemy selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Enemy record, @Param("example") EnemyExample example);

    int updateByExample(@Param("record") Enemy record, @Param("example") EnemyExample example);

    int updateByPrimaryKeySelective(Enemy record);

    int updateByPrimaryKey(Enemy record);

    Enemy randomSelect(String area);
}